package com.android.qjpmc.bean;

public class EventRecordItemBean {
    static final int EVENT_VALUE_RESET = 0;
    static final int EVENT_VALUE_CLS_TO_OPEN = 1;
    static final int EVENT_VALUE_OPN_TO_CLS = 2;
    public String m_name;
    public int m_value; //0.复归；1.越上限；2.越下限
    public String m_time;
    public int m_id;//事件ID
    public String m_value_text = null;
    public String m_fault_value;
    public EventRecordItemBean(int id, String time, String name, int value )
    {
        this.m_id = id;
        this.m_time = time;
        this.m_name = name;
        this.m_value = value;
    }
    public EventRecordItemBean()
    {

    }
    public void SetValue(int value)
    {
        m_value = value;
        m_value_text = GetValueText();
    }
    public String GetValueText()
    {
        switch (m_value)
        {
            case EVENT_VALUE_RESET: {
                return "复归";
            }
            case EVENT_VALUE_CLS_TO_OPEN:
            {
                return "合->分";
            }
            case EVENT_VALUE_OPN_TO_CLS:
            {
                return "分->合";
            }
            default:
            {
                return "未知";
            }
        }
    }
}
